package com.huilian.iotbox.data.dao;

import com.huilian.iotbox.data.po.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PermissionCommonDao {
    List<Permission> findUserPermission(@Param("userId") Integer userId, @Param("platformType") Integer platformType);
    List<Permission> findUserPermissionV2(@Param("userId") Integer userId, @Param("platformType") Integer platformType);

    List<Permission> findAllNoAuthPermissionByPlatformType(@Param("platformType") Integer platformType);
}
